﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.BasicData.Vendors.DTO;
using WMS.StorageManagement.BinLocationDefinitions;
using WMS.WarehousingManagement.PurchaseWarehousings.DTO;
using WMS.Web.Controllers.BasicData.Vendors;

namespace WMS.WarehousingManagement.NoticeOfArrivals
{
    /// <summary>
    /// 采购入库接口
    /// </summary>
    public interface IPurchaseWarehousingAppService: IApplicationService
    {
        /// <summary>
        /// 获取到货通知（分页）
        /// </summary>
        /// <param name="page">页码</param>
        /// <param name="limit">页容量</param>
        /// <returns>返回对应数据</returns>
        Task<PagedResult> GetPurchaseWarehousing(int page, int limit);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="vendor">供应商信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddPurchaseWarehousing(AddDTO vendor);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id">主键Id</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeletePurchaseWarehousing(int Id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        Task<int> UpdatePurchaseWarehousing(UpdateDTO update);

        /// <summary>
        /// 获取供应商
        /// </summary>
        /// <returns></returns>
        Task<List<Vendor>> GetVendor();

        /// <summary>
        /// 获取仓库信息
        /// </summary>
        /// <returns></returns>
        Task<List<BinLocationDefinition>> GetBinLocationDefinition();



    }
}
